import {
	Request
} from "../index.js";

export function pay(data) {
	return Request({
		url: "/wxpay/paywx",
		method: 'post',
		data: data
	})
}

export function waitpaywx(data) {
	return Request({
		url: "/wxpay/waitpaywx",
		method: 'post',
		data: data
	})
}

export function searchallorderlist(data) {
	return Request({
		url: "/wxapplet/searchallorderlist",
		method: 'post',
		data: data
	})
}

export function searchorderinfo(data) {
	return Request({
		url: "/wxapplet/searchorderinfo",
		method: 'post',
		data: data
	})
}

//退款
export function refundbut(data) {
	return Request({
		url: "/wxapplet/refundbut",
		method: 'post',
		data: data
	})
}

//确认收货
export function successorder(data) {
	return Request({
		url: "/wxapplet/successorder",
		method: 'post',
		data: data
	})
}

//查看物流
export function logistics(data) {
	return Request({
		url: "/wxapplet/logistics",
		method: 'post',
		data: data
	})
}
// 删除订单
export function deletedwaitorderlist(data) {
	return Request({
		url: "/wxapplet/deletedwaitorderlist",
		method: 'post',
		data: data,
	})
}